<template>
    <div class="container">container</div>

</template>

<script setup>
import { onBeforeMount, onMounted } from 'vue';

onBeforeMount(() => {
    console.log('Dom元素渲染前:', document.querySelector('.container'))
})

onMounted(() => {
    console.log('Dom元素渲染后:', document.querySelector('.container'))
})      
</script>